/**  
 * All rights Reserved, Designed By www.beonelot.com
 * @Package: com.bccah.modlib.dbdo.mapper
 * @Filename: AcsControlUserInfoMapper.java
 * @Description: TODO(AcsControlUserInfoMapper接口)
 * @author: 金鑫智慧
 * @date: 2020-04-08
 * @version: V1.0
 * @Copyright: 2018 www.beonelot.com Inc. All rights reserved.
 * 注意：本内容仅限于重庆金鑫智慧科技有限公司内部传阅，禁止外泄以及用于其他的商业目的
 */
package com.jinxin.platform.cdfaceacs.mapper;

import com.jinxin.platform.cdfaceacs.pojo.domains.AcsControlUserInfoDO;
import com.jinxin.platform.cdfaceacs.pojo.domains.RoomDto;
import org.apache.ibatis.annotations.Mapper;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * TODO(AcsControlUserInfoMapper接口)
 * @Classn: AcsControlUserInfoMapper
 * @author SY
 * @date 2020-04-08
 */
@Mapper
public interface JurenAcsControlUserInfoMapper {

    int deleteByPrimaryKey(String userId);

    int insert(AcsControlUserInfoDO record);

    int insertSelective(AcsControlUserInfoDO record);

     AcsControlUserInfoDO selectByPrimaryKey(String userId);

    int updateByPrimaryKeySelective(AcsControlUserInfoDO record);

    int updateByPrimaryKey(AcsControlUserInfoDO record);

    List<AcsControlUserInfoDO> selAllTable(String userType, String userBlockId, String userRoomId, String userName,String community, String parentId, String excludeType);

    List<AcsControlUserInfoDO> selDOByInfo(AcsControlUserInfoDO record);

    List<AcsControlUserInfoDO> selectAllUsers();

    List<RoomDto> selectOwners();

    List<AcsControlUserInfoDO> selAll();

    AcsControlUserInfoDO selById(String id);

    AcsControlUserInfoDO selectOne(HashMap param);

    List<Map> countUserByAgeRange();

    List<Map<String,Integer>> countUserByType();

    List<Map<String,Integer>> countUserByMType();

    List<Map<String,Integer>> countOldUserByAgeRange();

}
